package com.jsc.common.rabbitMQ;

import com.jsc.common.ymlparams.SystemParams;
import org.springframework.amqp.core.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName FanoutExchange
 * @Date 2021/7/3 0003 下午 15:17
 * @Author Administrator
 * @Description TODO
 * Version 1.0
 */
@Configuration
public class FanoutExchange {
//    @Autowired
//    private SystemParams systemParams;
//
//    @org.springframework.context.annotation.Bean
//    public DirectExchange directExchange() {
//        return new DirectExchange(systemParams.exchangeName, true, false);
//    }
//
//    @org.springframework.context.annotation.Bean
//    public Queue tradingCenterQueue() {
//        return new Queue(systemParams.tradingCenterQueue, true, false, false);
//    }
//
//    @org.springframework.context.annotation.Bean
//    public Queue popUpPromptQueue() {
//        return new Queue(systemParams.popUpPromptQueue, true, false, false);
//    }
//
//    @org.springframework.context.annotation.Bean
//    public Binding tradingCenterBinding() { return BindingBuilder.bind(tradingCenterQueue()).to(directExchange()).with(systemParams.pushRoutingKey); }
//
//    @org.springframework.context.annotation.Bean
//    public Binding popUpPromptBinding() { return BindingBuilder.bind(popUpPromptQueue()).to(directExchange()).with(systemParams.popRoutingKey); }

}
